<!--{template header}-->
<!--{loop #pluginVers $plugin $v}-->
<div class="card w-100 mt-4" style="border-radius:8px;">
	<div class="d-flex border-bottom title-part-padding align-items-center">
		<h4 class="mb-0">
			<!--{if !empty(#pluginInfo[$plugin]['icon'])}-->
			<img height="30" src="{#pluginInfo[$plugin]['icon']}" class="rounded align-text-bottom"/>
			<!--{/if}-->
			<!--{if !empty(#pluginInfo[$plugin]['name'])}-->
            {#pluginInfo[$plugin]['name']} <span class="fa-xs">($plugin)</span>
			<!--{else}-->
			$plugin
			<!--{/if}-->
			<!--{if !preg_match('/^[A-Z]\w+$/', $plugin)}-->(目录名不合规)<!--{/if}-->
		</h4>
	</div>
	<div class="card-body">
		 <!--{loop $v $ver}-->
		<div class="applist d-flex border-bottom pb-3 pt-3 align-items-center">
			<div class="ms-3">
				<h5 class="mb-0 fw-light">
					<span class="card-subtitle">版本名称:</span>
					<!--{if !empty(#pluginInfo[$plugin]['branch'][$ver['ver']])}-->
					{#pluginInfo[$plugin]['branch'][$ver['ver']]} <span class="fa-xs">($ver['ver'])</span>
					<!--{else}-->
					$ver['ver']
					<!--{/if}-->
					<!--{if !preg_match('/^\w+$/', $ver['ver'])}-->(目录名不合规)<!--{/if}-->
				</h5>
				<div class="text-muted fs-9 mt-2">
                    <!--{if $ver['bType'] == 1}-->
                    类型：在线运行
                    <!--{elseif $ver['bType'] == 2}-->
                    类型：资料下载
                    <!--{elseif $ver['bType'] == 3}-->
                    类型：资料下载(小程序包)
                    <!--{/if}-->
				</div>
			</div>
			<div class="ms-auto">
                <!--{if $ver['bType'] == 1}-->
                <a href="{uri /plugin/}{$plugin}/{$ver['ver']}/index" target="_blank" class="badge font-weight-medium bg-light-success text-success"><i class="me-1 mdi mdi-web"></i>访问</a>
                <a href="{uri /system/page/install}?plugin={$plugin}&ver={$ver['ver']}" class="badge font-weight-medium bg-light-danger text-danger"><i class="ri-install-line align-bottom me-1"></i>安装</a>
                <a href="{uri /system/page/setting}?plugin={$plugin}&ver={$ver['ver']}" class="badge font-weight-medium bg-light text-secondary"><i class="bi-gear align-bottom me-1"></i>设置</a>
                <a href="{uri /system/page/commander}?plugin={$plugin}&ver={$ver['ver']}" class="badge font-weight-medium bg-light text-secondary"><i class="bi-flag align-bottom me-1"></i>指令</a>
                <!--{/if}-->
                <a href="{uri /system/page/upload}?plugin={$plugin}&ver={$ver['ver']}" class="badge font-weight-medium bg-light-primary text-primary"><i class="ri-git-repository-commits-line align-bottom me-1"></i>提审</a>
            </div>
		</div>
		<!--{/loop}-->
	</div>
</div>
<!--{/loop}-->

<script src='https://gitee.com/WitFrameSDK/Dev/widget_preview' async defer></script>
<div id="osc-gitee-widget-tag"></div>
<style>
	.card-body .applist:last-child{border-bottom: 0!important;}
	.osc_pro_color {color: #1e4cb6 !important;}
	.osc_panel_color {background-color: #ffffff !important;}
	.osc_background_color {background-color: #ffffff !important;}
	.osc_border_color {border-color: #e3e9ed !important;}
	.osc_desc_color {color: #666666 !important;}
	.osc_link_color * {color: #9b9b9b !important;}
</style>

<!--{template footer}-->
